//相位数组信息
import 'package:flutter_with_bmap/entity/green_wave_phase.dart';
import 'package:json_annotation/json_annotation.dart';

part 'green_wave.g.dart';

@JsonSerializable(explicitToJson: true)
class GreenWave {
  int alarm_type;
  int priority;
  List<GreenWavePhase> phases;
  GreenWave(this.alarm_type, this.priority, this.phases);
  factory GreenWave.fromJson(Map<String, dynamic> json) =>
      _$GreenWaveFromJson(json);
  Map<String, dynamic> toJson() => _$GreenWaveToJson(this);
}
